There are two types of supervised learning problem: regression and classification.
In regression, the hypothesis refers to when you are mapping x features to y predictions.
The squared error cost function is one of the most commonly used cost functions for regression problems. There are other ways to calculate the objective cost function as well.